import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import '@/assets/index.scss'

import App from './App.vue'
import router from './router'

const app = createApp(App)
app.directive('cover', {
  mounted(el, binding) {
    el.src = import.meta.env.VITE_APP_BASE_API + binding.value
  },
  updated(el, binding) {
    el.src = import.meta.env.VITE_APP_BASE_API + binding.value
  }
})
app.use(router)
app.use(ElementPlus)
app.mount('#app')
